var admcontent = {
		
	pid: false,	
	
	showTree: function(event) {
		
		$('PopUp_div').style.width = "500px";
		openPopUp(event, false, "/admin-content-add-ajax-showTree");
	
	},
	
	openTree: function(pid) {
		
		$('contTree_view_'+pid).load("/admin-content-add-ajax-showTree?pid="+pid);
		
	},
	
	confirmPid: function(pid, title) {
		
		$('add.pid').value    = pid;
		$('add.pid').readonly = true;
		$('add.pid.title').innerHTML = title;
		
		popUpOpacity('hide');
		
		this.pid = pid;
	},
	
	pidChanged: function() {
		if(this.pid != false) {
			$('add.pid').value = this.pid;
		}
	}
		
}